<?php

class EmbeddedOrganizationalMemberDataForm extends OrganizationalMemberDataForm {
  
  public function configure() {
    parent::configure ();
    
    // Remove fields
    unset($this['member_id'], $this['created_at'], $this['updated_at'], $this['deleted_at'], $this['created_by'], $this['updated_by'], $this['deleted_by'], $this['version']);
    
    $this->widgetSchema ['date_of_joining'] = new sfWidgetFormDateJQueryUI(array("change_month" => true, "change_year" => true));
    $this->widgetSchema ['date_of_resignation'] = new sfWidgetFormDateJQueryUI(array("change_month" => true, "change_year" => true));
	
    $ids = $this->getOption('enabled_organizational_unit_ids', array());
    $this->widgetSchema ['organizational_unit_id'] = new WidgetFormOrganizationalUnitCanHaveMembersChoice(array('enabled_ids' => $ids));
  }
}